#include "Heap.h"
void test1()
{
	Hp hp;
	HeapInit(&hp);
	int arr[] = { 1,55,9,24,7 };
	for (int i = 0; i < sizeof(arr) / sizeof(int); i++)
	{
		Heappush(&hp,arr[i]);
	}
	HeapPrint(&hp);
	int k = 2;
	while (k -- )
	{
		HeapPop(&hp);
		HeapTop(&hp);
		printf("%d ", HeapTop(&hp));

	}
	HeapDestory(&hp);
}
void test2()
{
	Hp hp;
	HeapInit(&hp);
	int arr[] = { 1,55,24,9,99 };
	HeapCreat(&hp, arr, sizeof(arr) / sizeof(int));
	HeapPrint(&hp);
	HeapDestory(&hp);
}
void test3() {
	Hp hp;
	HeapInit(&hp);
	HeapTopk2(&hp, 4);
}
int main()
{
	//test1();
	//test2();
	test3();
}